import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'
import App from './App.vue'
import router from './router/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { toLine } from './utils/index'

const app = createApp(App)

// 全局注册图标
for(let i in ElementPlusIconsVue) {
    app.component(`el-icon-${toLine(i)}`, (ElementPlusIconsVue as any)[i])
}

app.use(router).use(ElementPlus)
app.mount('#app')
